/**
 * 
 */
package xin.xihc.validtor;

import java.lang.annotation.Annotation;
import java.lang.reflect.Field;
import java.util.HashMap;
import java.util.Map;

/**
 *
 * bean的属性
 *
 * @author xihc
 * @date 2018年09月19日
 * @version 1.0
 *
 */
public class BeanClassProp {

	private Class<?> clazz;// bean的Class
	private Field[] fields;// 所有字段列表
	private Map<String, Annotation[]> fieldAnnotations = new HashMap<String, Annotation[]>(1);// 字段对应的注解列表

	/**
	 * @return the clazz
	 */
	public Class<?> getClazz() {
		return clazz;
	}

	/**
	 * @param clazz
	 *            the clazz to set
	 */
	public void setClazz(Class<?> clazz) {
		this.clazz = clazz;
	}

	/**
	 * @return the fields
	 */
	public Field[] getFields() {
		return fields;
	}

	/**
	 * @param fields
	 *            the fields to set
	 */
	public void setFields(Field[] fields) {
		this.fields = fields;
	}

	/**
	 * @return the fieldAnnotations
	 */
	public Map<String, Annotation[]> getFieldAnnotations() {
		return fieldAnnotations;
	}

	/**
	 * @param fieldAnnotations
	 *            the fieldAnnotations to set
	 */
	public void setFieldAnnotations(Map<String, Annotation[]> fieldAnnotations) {
		this.fieldAnnotations = fieldAnnotations;
	}

}
